//
//  ParticleSystemCacheUtil.h
//  firebkball
//
//  Created by ren jian on 18/6/4.
//
//

#ifndef ParticleSystemCacheUtil_h
#define ParticleSystemCacheUtil_h

#include "cocos2d.h"
USING_NS_CC;

class ParticleSystemCacheUtil :public Ref {
private:
    ParticleSystemCacheUtil();
    Dictionary *cache;
    static ParticleSystemCacheUtil* _self;
public:
    ~ParticleSystemCacheUtil();
    static ParticleSystemCacheUtil* getSingleInstance();
    ParticleSystemQuad *addOrGetParticleSystem(const char* particlePlistFile);
    void clearCache();
};

class ParticleSystemQuad_AHA : public ParticleSystemQuad{
public:
    static ParticleSystemQuad_AHA* createWithDic(Dictionary *dicData,const char *plistFile);
    bool initWithFileData(Dictionary *dicData,const char *plistFile);
};

#endif /* ParticleSystemCacheUtil_h */
